.TH std::experimental::filesystem::directory_iterator::directory_iterator 3 "2024.06.10" "http://cppreference.com" "C++ Standard Libary"
.SH NAME
std::experimental::filesystem::directory_iterator::directory_iterator \- std::experimental::filesystem::directory_iterator::directory_iterator

.SH Synopsis
   directory_iterator();                                      \fB(1)\fP (filesystem TS)
   explicit directory_iterator( const path& p );              \fB(2)\fP (filesystem TS)
   directory_iterator( const path& p, error_code& ec );       \fB(3)\fP (filesystem TS)
   directory_iterator( const directory_iterator& ) = default; \fB(4)\fP (filesystem TS)
   directory_iterator( directory_iterator&& ) = default;      \fB(5)\fP (filesystem TS)

   Constructs a new directory iterator.

   1) Constructs the end iterator.
   2) Constructs a directory iterator that refers to the first directory entry of a
   directory identified by p. If p refers to a non-existing file or not a directory,
   returns the end iterator.

.SH Parameters

    This section is incomplete

.SH Exceptions

   1)
   noexcept specification:
   noexcept

   2) filesystem_error if an error occurs. The exception object is constructed with p
   as an argument.
   3)
   noexcept specification:
   noexcept


.SH Notes

   To iterate over the current directory, construct the iterator as
   directory_iterator(".") instead of directory_iterator("").

.SH Categories:
     * Noindexed pages
     * Todo without reason
     * unconditionally noexcept
.SH Hidden categories:
     * Pages with unreviewed unconditional noexcept template
     * Pages with unreviewed noexcept template
